import request from "../index";

export default class QuestionRequest {
  // 创建表单
  public static addQuestion(data) {
    return request({
      url: "/question",
      data,
      method: "post",
    });
  }

  // 修改表单信息
  public static editQuestion(data) {
    return request({
      url: "/question",
      data,
      method: "put",
    });
  }

  // 删除表单
  public static deleteQuestion(params) {
    return request({
      url: "/question",
      params,
      method: "delete",
    });
  }
}
